#ifndef THREADPOOL_H
#define THREADPOOL_H

#include <myHeader.h>
#include "tidArr.h"
#include "taskQueue.h"

typedef struct threadPool_s{
    pthread_mutex_t mutex;
    pthread_cond_t cond;
    int exitFlag;
    tidArr_t tidArr;
    taskQueue_t taskQueue;
    usrInfo_t *usrInfo;
}threadPool_t;

int initThreadPool(threadPool_t *pThreadPool,int workerNum);

#endif
